bin/pull: Fix @ override syntax when pulling multiple refs
authorColin Walters <walters@verbum.org>
Mon, 31 Jul 2017 16:22:16 +0000 (12:22 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 7 Aug 2017 16:10:08 +0000 (16:10 +0000)
commit48f8f329211fd6647b0c9bd0b72d494e8701a0fb
treebc6268c31da42e9bdeed39ffae8e5e29b3b1f0b9
parent8eec337feee95d76f14f6e1b39e0b08673e40c22
bin/pull: Fix @ override syntax when pulling multiple refs

Coverity spotted an infloop here since we were incrementing `i++`
instead of `j++`.  But adding a test revealed other bugs - we need
to keep the arrays in sync.

Coverity CID: 1452204

Closes: #1041
Approved by: pwithnall
src/ostree/ot-builtin-pull.c
tests/pull-test.sh